package vcp.common;

import vcp.application.Bootstrapper;
import vcp.gui.components.VCPFrame;
import vcp.gui.components.VCPPanel;


public abstract class AbstractView extends Bootstrapper {
	 private VCPFrame mainFrame;	
	 private VCPPanel mainPanel;
     
     public AbstractView(){
    	 super(); 
    	 
     }   
	 
	 protected VCPFrame getMainFrame() {
			if(mainFrame==null){
			      mainFrame = new VCPFrame(getSettings().getProperty("ApplicationTitle"));			     
			}
			return mainFrame;
		}
	  
	 protected VCPPanel getMainPanel(){
		  if(mainPanel==null){
			  mainPanel = new VCPPanel();
		  }
		  return mainPanel;
	 }
     
}
